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
/* See Shipyard for Compile method. @seanmonstar || Resig */ | |
var Template = new Class({ | |
_template: null | |
,setTemplate:function(str){ | |
this._template = str; | |
} | |
,getTemplate:function(){ | |
return this._template || '<b>No template loaded</b>'; | |
} |
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
var p; | |
function buildElement(text){ | |
var node, | |
doc = document; | |
node = doc.createElement('div'); | |
node.setAttribute('class','node-wrapper'); | |
p = doc.createElement('p'); | |
p.textContent = text; | |
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
(function(win){ | |
var _REGEX = /:(latch(ed$)?)/i | |
,_latched = {} | |
,_arguments = {} | |
,removeLatch = function(type){ | |
var isLatched = false; | |
if(type.indexOf(':')){ | |
isLatched = _REGEX.test(type) | |
if(isLatched){ | |
type = type.replace(_REGEX,''); |
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
(function(win){ | |
var Template = win.Template = new Class({ | |
_template: null | |
,setTemplate:function(str){ | |
this._template = str; | |
} | |
,getTemplate:function(){ | |
return this._template || '<b>No template loaded</b>'; | |
} |
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
(function(win){ | |
var Model = win.Model = new Class({ | |
Implements: Options | |
,options: { | |
data: {} | |
} | |
,initialize: function(options){ | |
this.setOptions(options); |
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
if(typeof Object.merge !== 'function') | |
Object.merge = function() { | |
var base = arguments[0] | |
args = Array.prototype.slice.call(arguments,1), | |
count = args.length, | |
keys = Object.keys(base), | |
mergeIn = undefined,key = undefined,i = 0; | |
mergeIn = function(obj){ | |
var keys = Object.keys(this), |
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
require({ | |
packages: [ | |
{ | |
name: 'Poly' | |
,location: '/js/lib/Polyfills/Source' | |
} | |
{ | |
name: 'Mootools' | |
,location: '/js/lib/Milk/Source' |
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
var Feature = new Class({ | |
initialize: function (el) { | |
var el = this.el = document.id(el); | |
var options = this.getObjectFromAttributes(el); | |
var feature = options.feature = this.getType(el); | |
if (el.get('text')) { | |
options.template = el.get('text'); | |
} |
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
alert($('select-me').get('text')); |
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
#tab-wrapper | |
#tab-inner | |
#header-wrapper | |
#header-inner | |
#field-wrapper | |
#field-inner | |
#field-header-wrapper | |
#field-header-inner | |
#field-body-wrapper | |
#field-body-inner |