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 extend = Object.getOwnPropertyNames ? | |
function ecma5extend(obj) { | |
var proto = obj; | |
var protos = []; | |
var result = {}; | |
var descriptors = {}; | |
while (proto) { | |
protos.push(proto); | |
proto = Object.getPrototypeOf(proto); |
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
({ | |
name: "require.optimized", | |
optimize: "none", | |
include: ["main"], | |
out: "out.js" | |
}) |
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
.grid_column(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}col@{index}'; | |
@{fullclass} { left: @base * @index; } | |
} | |
.grid_row(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}row@{index}'; | |
@{fullclass} { top: @base * @index; } | |
} | |
.grid_width(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}hspan@{index}'; |
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
// Defines a module that works in Node and AMD. | |
// This version can be used as common boilerplate for a library module | |
// that you only want to expose to Node and AMD loaders. It will not work | |
// well for defining browser globals. | |
// If you need a version of this file that works CommonJS-like environments | |
// that do not support module.exports or if you want to define a module | |
// with a circular dependency, see commonjsAdapter.js |
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(factory) { | |
if (typeof define !== 'undefined' && define.amd) | |
return define(factory); | |
if (typeof module !== 'undefined' && module.exports === exports) | |
return module.exports = factory(); | |
window.LIB_NAME = factory(); | |
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
/*globals define, module */ | |
//jshint camelcase: false, curly:false | |
(function(root) { | |
'use strict'; | |
// __proto__ will be used if supported | |
//jshint -W103 | |
function prototype_PROTO(parent, child, methods) { |
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(root) { | |
var current = { | |
parent: null, | |
config: null, | |
}; | |
function clazz(name) { | |
function Class(config) { |
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
/** | |
* Copyright © 2009-2012 A. Matías Quezada | |
*/ | |
(function(root) { | |
var undefined; | |
function extend(config) { | |
var parent = 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
(function extensions() { | |
function arr(val) { | |
return Array.prototype.slice.call(val); | |
} | |
function extend(Type, prototype) { | |
function E(val) { this.val = val } | |
E.prototype = prototype; | |
prototype.constructor = E; |
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
define(function(require) { | |
var text = require('text'); | |
var view = require('view'); | |
var cache = {}; | |
function load(name, parentRequire, done, config) { | |
text.load(name, parentRequire, function(template) { | |
cache[name] = template; |