Created
September 3, 2010 18:51
-
-
Save ngmaloney/564355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: js/jquery.utils.lite.js | |
=================================================================== | |
--- js/jquery.utils.lite.js (revision 3) | |
+++ js/jquery.utils.lite.js (working copy) | |
@@ -1125,12 +1125,12 @@ | |
*/ | |
$.widget('ui.keynav', { | |
- _init: function(){ | |
+ _create: function(){ | |
var $elf = this; | |
var type = $.ui.keynav.types[this.options.type]; | |
if (type) { | |
- if (type._init) { | |
- type._init.apply(this.element, [this]); | |
+ if (type._create) { | |
+ type._create.apply(this.element, [this]); | |
} | |
if (type.constraints) { | |
this._applyConstraints(type); | |
@@ -1180,7 +1180,7 @@ | |
53, 54, 55, 56, 57, 8, 9, 96, 97, 98, 99, 100, | |
101, 102, 103, 104, 105] | |
}, | |
- _init: function(ui) { | |
+ _create: function(ui) { | |
if (ui.options.mousewheel) { ui._bindMouseWheel(this, 'integer'); } | |
if (ui.options.arrows) { ui._bindArrows(this, 'integer'); } | |
}, | |
@@ -1208,7 +1208,7 @@ | |
53, 54, 55, 56, 57, 8, 9, 96, 97, 98, 99, 100, | |
101, 102, 103, 104, 105, 110, 190] | |
}, | |
- _init: function(ui) { | |
+ _create: function(ui) { | |
if (ui.options.mousewheel) { ui._bindMouseWheel(this, 'fixed'); } | |
if (ui.options.arrows) { ui._bindArrows(this, 'fixed'); } | |
}, | |
@@ -1273,7 +1273,7 @@ | |
} | |
}; | |
-$.ui.keynav.defaults = { | |
+$.ui.keynav.prototype.options = { | |
type: 'integer', | |
mousewheel: true, | |
arrows: true, | |
Index: js/jquery.utils.js | |
=================================================================== | |
--- js/jquery.utils.js (revision 3) | |
+++ js/jquery.utils.js (working copy) | |
@@ -1085,7 +1085,7 @@ | |
} | |
// support metadata plugin (v1.0 and v2.0) | |
- var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); | |
+ var opts = $.extend({}, $.fn.cycle.prototype.options, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); | |
if (opts.autostop) | |
opts.countdown = opts.autostopCount || els.length; | |
@@ -1419,7 +1419,7 @@ | |
$.fn.cycle.ver = function() { return ver; }; | |
// override these globally if you like (they are all optional) | |
-$.fn.cycle.defaults = { | |
+$.fn.cycle.prototype.options = { | |
fx: 'fade', // one of: fade, shuffle, zoom, scrollLeft, etc | |
timeout: 4000, // milliseconds between slide transitions (0 to disable auto advance) | |
continuous: 0, // true to start next transition immediately after current one completes | |
Index: js/jquery.mcalc.permalink.js | |
=================================================================== | |
--- js/jquery.mcalc.permalink.js (revision 3) | |
+++ js/jquery.mcalc.permalink.js (working copy) | |
@@ -11,7 +11,7 @@ | |
// i18n | |
function _(str, args) { return $.i18n('mcalc', str, args); } | |
-$.extend($.ui.mcalc.defaults, { | |
+$.extend($.ui.mcalc.prototype.options, { | |
permalinkInput: true, | |
permalinkAnchor: true | |
}); | |
Index: js/jquery.mcalc.charts.js | |
=================================================================== | |
--- js/jquery.mcalc.charts.js (revision 3) | |
+++ js/jquery.mcalc.charts.js (working copy) | |
@@ -11,7 +11,7 @@ | |
// i18n | |
function _(str, args) { return $.i18n('mcalc', str, args); } | |
-$.extend($.ui.mcalc.defaults, { | |
+$.extend($.ui.mcalc.prototype.options, { | |
interestChartType: ['p3', 'p'], | |
interestChart: { | |
chs: '290x160', | |
Index: js/jquery.mcalc.summary.js | |
=================================================================== | |
--- js/jquery.mcalc.summary.js (revision 3) | |
+++ js/jquery.mcalc.summary.js (working copy) | |
@@ -11,7 +11,7 @@ | |
// i18n | |
function _(str, args) { return $.i18n('mcalc', str, args); } | |
-$.ui.mcalc.defaults.summaryPrint = true; | |
+$.ui.mcalc.prototype.options.summaryPrint = true; | |
$.tpl('summary.informations', [ | |
$.format('<h1>{0:s}</h1>', _('Mortgage summary')), | |
Index: js/jquery.mcalc.js | |
=================================================================== | |
--- js/jquery.mcalc.js (revision 3) | |
+++ js/jquery.mcalc.js (working copy) | |
@@ -26,7 +26,7 @@ | |
this._trigger('refresh'); | |
}, | |
_ui: {}, | |
- _init: function() { | |
+ _create: function() { | |
var ui = this; | |
this._log('mcalc:initialing: %o (options: %o, ui: %o)', this.element, this.options, this); | |
@@ -239,7 +239,7 @@ | |
}; | |
-$.ui.mcalc.defaults = { | |
+$.ui.mcalc.prototype.options = { | |
debug: false, | |
form: ['principal', 'cashdown', 'interest', 'term', 'amortschedule', 'subtotal', 'insurance', 'ptaxes', 'pmi', 'total'], | |
principal: 300000, // $ | |
@@ -314,7 +314,7 @@ | |
] | |
}); | |
-$.ui.mcalc.defaults.principalKeynav = { | |
+$.ui.mcalc.prototype.options.principalKeynav = { | |
type: 'integer', | |
max_length: 7, | |
max: 9999999 | |
@@ -341,7 +341,7 @@ | |
}); | |
-$.ui.mcalc.defaults.cashdownKeynav = { | |
+$.ui.mcalc.prototype.options.cashdownKeynav = { | |
type: 'fixed', | |
max_length: 5, | |
max_digits: 2, | |
@@ -363,7 +363,7 @@ | |
$(this).find('input') | |
.width(35) | |
.val(ui.options.cashdown) | |
- .keynav($.ui.mcalc.defaults.cashdownKeynav); | |
+ .keynav($.ui.mcalc.prototype.options.cashdownKeynav); | |
}, | |
events: [ | |
{type: 'ready', callback: $.ui.mcalc.inputReadyRefreshObserver}, | |
@@ -374,7 +374,7 @@ | |
] | |
}); | |
-$.ui.mcalc.defaults.interestKeynav = $.ui.mcalc.defaults.cashdownKeynav; | |
+$.ui.mcalc.prototype.options.interestKeynav = $.ui.mcalc.prototype.options.cashdownKeynav; | |
$.ui.mcalc.component({ | |
name: 'interest', | |
@@ -390,7 +390,7 @@ | |
$(this).find('input') | |
.width(35) | |
.val(ui.options.interest) | |
- .keynav($.ui.mcalc.defaults.interestKeynav); | |
+ .keynav($.ui.mcalc.prototype.options.interestKeynav); | |
}, | |
events: [ | |
{type: 'ready', callback: $.ui.mcalc.inputReadyRefreshObserver} | |
@@ -416,8 +416,8 @@ | |
}, | |
init: function(ui) { | |
var tpl = []; | |
- for (var x in $.ui.mcalc.defaults.termValues) { | |
- tpl.push($.format('<option value="{0:s}">{0:s}</option>', $.ui.mcalc.defaults.termValues[x])); | |
+ for (var x in $.ui.mcalc.prototype.options.termValues) { | |
+ tpl.push($.format('<option value="{0:s}">{0:s}</option>', $.ui.mcalc.prototype.options.termValues[x])); | |
} | |
$(this).find('select') | |
.append(tpl.join('')).val(ui.options.term); | |
@@ -429,7 +429,7 @@ | |
] | |
}); | |
-$.ui.mcalc.defaults.ptaxesKeynav = $.ui.mcalc.defaults.cashdownKeynav; | |
+$.ui.mcalc.prototype.options.ptaxesKeynav = $.ui.mcalc.prototype.options.cashdownKeynav; | |
$.ui.mcalc.component({ | |
name: 'ptaxes', | |
@@ -445,7 +445,7 @@ | |
$(this).find('input') | |
.width(35) | |
.val(ui.options.ptaxes) | |
- .keynav($.ui.mcalc.defaults.ptaxesKeynav); | |
+ .keynav($.ui.mcalc.prototype.options.ptaxesKeynav); | |
}, | |
events: [ | |
{type: 'ready', callback: $.ui.mcalc.inputReadyRefreshObserver}, | |
@@ -456,7 +456,7 @@ | |
] | |
}); | |
-$.ui.mcalc.defaults.insuranceKeynav = $.ui.mcalc.defaults.cashdownKeynav; | |
+$.ui.mcalc.prototype.options.insuranceKeynav = $.ui.mcalc.prototype.options.cashdownKeynav; | |
$.ui.mcalc.component({ | |
name: 'insurance', | |
@@ -472,7 +472,7 @@ | |
$(this).find('input') | |
.width(35) | |
.val(ui.options.insurance) | |
- .keynav($.ui.mcalc.defaults.insuranceKeynav); | |
+ .keynav($.ui.mcalc.prototype.options.insuranceKeynav); | |
}, | |
events: [ | |
{type: 'ready', callback: $.ui.mcalc.inputReadyRefreshObserver}, | |
@@ -483,7 +483,7 @@ | |
] | |
}); | |
-$.ui.mcalc.defaults.pmiKeynav = $.ui.mcalc.defaults.cashdownKeynav; | |
+$.ui.mcalc.prototype.options.pmiKeynav = $.ui.mcalc.prototype.options.cashdownKeynav; | |
$.ui.mcalc.component({ | |
name: 'pmi', | |
@@ -499,7 +499,7 @@ | |
$(this).find('input') | |
.width(35) | |
.val(ui.options.pmi) | |
- .keynav($.ui.mcalc.defaults.pmiKeynav); | |
+ .keynav($.ui.mcalc.prototype.options.pmiKeynav); | |
}, | |
events: [ | |
{type: 'ready', callback: $.ui.mcalc.inputReadyRefreshObserver}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment