<commit_before>(function(Signal, _window) {
	
	var _throttle = 50; // ms
		
	var Window = (Signal.core.extend(function() {

		this.dimensions = this._measure();
		this._bind();

	}, {

		// Public ******************************
		getDimensions: function() {
			return this.dimensions;
		},

		measure: function() {
			this.dimensions = this._measure();
			return this.dimensions;
		},

		update: function() {
			return this._fire();
		},

		setThrottle: function(ms) {
			_throttle = ms;
			return this._unbind()._bind();
		},

		destroy: function() {
			this._unbind().trigger('destroy');
			return this;
		},

		setThrottle: function(ms) {
			_throttle = +ms || 0;
			return this;
		},

		// Private ******************************
		_bind: function() {
			var self = this, t;

			_window.on('resize.SignalWindow', function() {
				clearTimeout(t);

				t = setTimeout(function() {
					self._fire();
				}, _throttle);
			});

			return this;
		},

		_unbind: function() {
			_window.off('resize.SignalWindow');
			return this;<commit_msg>Remove my derpy duplicate of setThrottle and update the original set throttle method<commit_after>(function(Signal, _window) {
	
	var _throttle = 50; // ms
		
	var Window = (Signal.core.extend(function() {

		this.dimensions = this._measure();
		this._bind();

	}, {

		// Public ******************************
		getDimensions: function() {
			return this.dimensions;
		},

		measure: function() {
			this.dimensions = this._measure();
			return this.dimensions;
		},

		update: function() {
			return this._fire();
		},

		setThrottle: function(ms) {
			_throttle = +ms || 0;
			return this._unbind()._bind();
		},

		destroy: function() {
			this._unbind().trigger('destroy');
			return this;
		},

		// Private ******************************
		_bind: function() {
			var self = this, t;

			_window.on('resize.SignalWindow', function() {
				clearTimeout(t);

				t = setTimeout(function() {
					self._fire();
				}, _throttle);
			});

			return this;
		},

		_unbind: function() {
			_window.off('resize.SignalWindow');
			return this;
{'fraction_non_alphanumeric': 0.20893371757925072, 'fraction_numerical': 0.002881844380403458, 'mean_word_length': 3.208080808080808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2046071', 'n_tokens_mistral': 825, 'n_tokens_neox': 666, 'n_words': 137}