#1416 js: sys::Pod.type

vkuzkokov Sat 19 Feb 2011

--- a/src/sys/js/fan/Pod.js     Wed Feb 16 17:09:50 2011 -0500
+++ b/src/sys/js/fan/Pod.js     Sat Feb 19 09:05:38 2011 +0600
@@ -77,7 +77,7 @@
   return this.$typesArray;
 }

-fan.sys.Pod.prototype.findType = function(name, checked)
+fan.sys.Pod.prototype.type = function(name, checked)
 {
   if (checked === undefined) checked = true;
   var t = this.m_types[name];

Sometimes those refactoring things just slip through.

vkuzkokov Sat 19 Feb 2011

That's the only occurence I managed to find.

--- a/src/sys/js/fanx/TypeParser.js     Wed Feb 16 17:09:50 2011 -0500
+++ b/src/sys/js/fanx/TypeParser.js     Sat Feb 19 09:19:57 2011 +0600
@@ -236,7 +236,7 @@
 {
   var pod = fan.sys.Pod.find(podName, checked);
   if (pod == null) return null;
-  return pod.findType(typeName, checked);
+  return pod.type(typeName, checked);
 }

 fanx_TypeParser.cache = [];

andy Sat 19 Feb 2011

Thanks for catching that @vkuzkokov - pushed a fix.

Login or Signup to reply.