Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
chore(build): standalone build, rebuild dist
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Feb 23, 2016
1 parent fbdb5b4 commit 9d3c63d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dist/%.min.js: dist/%.js

dist/%.js: $(DEPS)
mkdir -p $(@D)
browserify -t browserify-global-shim $(ENTRY_FILE) -o $@
browserify -t browserify-global-shim -s RangeBar $(ENTRY_FILE) -o $@

.PHONY: clean test test-local

Expand Down
15 changes: 8 additions & 7 deletions dist/elessar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.RangeBar = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var Base = require('estira');
var $ = (window.$);
var requestAnimationFrame = require('./raf');
Expand Down Expand Up @@ -65,7 +65,7 @@ var has = Object.prototype.hasOwnProperty;
module.exports = function getEventProperty(prop, event) {
return has.call(event, prop) ? event[prop]
: event.originalEvent && event.originalEvent.touches ? event.originalEvent.touches[0][prop]
: 0;
: undefined;
};

},{}],3:[function(require,module,exports){
Expand Down Expand Up @@ -373,7 +373,7 @@ var Range = Element.extend(vertical).extend({
var self = this,
beginStart = this.startProp('offset'),
beginPosStart = this.startProp('position'),
mousePos = getEventProperty(this.ifVertical('clientY','clientX'), origEv);
mousePos = getEventProperty(this.ifVertical('clientY','clientX'), origEv),
mouseOffset = mousePos ? mousePos - beginStart : 0,
beginSize = this.totalSize(),
perant = this.options.perant,
Expand All @@ -384,7 +384,7 @@ var Range = Element.extend(vertical).extend({
ev.stopPropagation();
ev.preventDefault();
var mousePos = getEventProperty(self.ifVertical('clientY','clientX'), ev);
if(mousePos) {
if(typeof mousePos !== 'undefined') {
var start = mousePos - perantStart - mouseOffset;

if (start >= 0 && start <= perantSize - beginSize) {
Expand Down Expand Up @@ -416,7 +416,7 @@ var Range = Element.extend(vertical).extend({
var mousePos = getEventProperty(self.ifVertical('clientY','clientX'), ev);
var size = mousePos - beginStart;

if(mousePos) {
if(typeof mousePos !== 'undefined') {
if (size > perantSize - beginPosStart) size = perantSize - beginPosStart;
if (size >= minSize) {
self.val([self.range[0], self.range[0] + size / perantSize], {dontApplyDelta: true});
Expand Down Expand Up @@ -451,7 +451,7 @@ var Range = Element.extend(vertical).extend({
var start = mousePos - perantStart - mouseOffset;
var size = beginPosStart + beginSize - start;

if(mousePos) {
if(typeof mousePos !== 'undefined') {
if (start < 0) {
start = 0;
size = beginPosStart + beginSize;
Expand Down Expand Up @@ -844,4 +844,5 @@ module.exports = {
}
}).call(this);

},{}]},{},[8]);
},{}]},{},[8])(8)
});
Loading

0 comments on commit 9d3c63d

Please sign in to comment.